<?php
header("content-type:text/html;charset=utf-8");
$id=$_GET['id'];
$dbh=new PDO('mysql:host=localhost;dbname=mhsw','root','root');
$sql="select * from company where id='$id'";
$arr=$dbh->query($sql)->fetch(PDO::FETCH_ASSOC);
?>
<form action="updatedo.php">
<table  border="1">
    <tr>
        <td>职位名</td>
        <td><input type="text" name="job" value="<?php echo $arr['job']?>"></td>
    </tr>
    <tr>
        <td>公司名</td>
        <td><input type="text" name="company" value="<?php echo $arr['company']?>"></td>
    </tr>
    <tr>
        <td>工作地点</td>
        <td><input type="text" name="place" value="<?php echo $arr['place']?>"></td>
    </tr>
    <tr>
        <td>薪资</td>
        <td><input type="text" name="money" value="<?php echo $arr['money']?>"></td>
    </tr>
    <tr>
        <td><input type="submit" value="提交"></td>
    </tr>
    <input type="hidden" name="hid" value="<?php echo $id?>">
</table>
</form>